package by.kniazhych.core.view.frames {
	import by.kniazhych.core.events.ApplicationEvent;
	import by.kniazhych.core.frames.ApplicationFrame;
	import design.frames.Authors;
	import flash.events.MouseEvent;
	
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	
	
	
	public class AuthorsFrame extends BaseFrameView{
		
		public function AuthorsFrame() {
			super();
			var assets:Authors = new Authors();
			addChild(assets);
			assets.exitButton.addEventListener(MouseEvent.CLICK, _onExitClicked);
		}
		
		private function _onExitClicked(e:MouseEvent):void {
			dispatchEvent(new ApplicationEvent(ApplicationEvent.FRAME_CHANGED, ApplicationFrame.MENU));
		}
		
	}

}